package com.jinlia.show.modules.base.art_design.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "art_vue_route", schema = DynamicSchemaConfig.schema_system, autoResultMap = true)
public class VueRoute {
    @TableId()
    private Long id;

    private Long parentId;

    private String name;

    private String path;

    private String component;

    private String type;

    /**
     * 商品库存量单位
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject meta;

    @TableField(exist = false)
    private List<VueRoute> children;
}
